package org.boticelli.plugin.twitter;

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;

import java.util.regex.Pattern;

import org.junit.Test;


public class TwitterPluginTestCase
{
    @Test
    public void testQuotePattern()
    {
        Pattern quotePattern = TwitterPlugin.QUOTE_PATTERN;
        assertThat(quotePattern.matcher("<test> xxx").matches(), is(true));
        assertThat(quotePattern.matcher("<3").matches(), is(false));
        assertThat(quotePattern.matcher("* fforw does not want to go to work").matches(), is(true));
        assertThat(quotePattern.matcher("*fforw does not want to go to work").matches(), is(true));
    }

}
